import VueRouter from "vue-router";
import Vue from "vue";
import HomePage from "@/views/HomePage.vue";
import FindPage from "@/views/FindPage.vue";
import NewsPage from "@/views/NewsPage.vue";
import MinePage from "@/views/MinePage.vue";
import DetailPage from "@/views/DetailPage.vue";

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    { path: '/', redirect: '/home' },
    { path: '/home', component: HomePage },
    { path: '/find', component: FindPage },
    { path: '/news', component: NewsPage },
    { path: '/mine', component: MinePage },
    { path: '/detail', component: DetailPage },
  ]
})

export default router